<template>
  <div>
    <!-- 启动页 -->
    <div class="launch-app">
      <!--<span class="pass-btn">跳过 5</span>
       <img class="advertising" src="@/assets/img/person/launch/index_android1.jpg" /> -->
      <img class="slogan" src="@/assets/img/person//launch/launch-pic.png" />
      <img class="logo" src="@/assets/img/person//launch/launch-logo.png" />
    </div>
  </div>
</template>

<script>
import { CheckVersion, getPersonAutoLoginData, GetAPPUserType, clearAll, getCompanyAutoLoginData, getPersonID, setToken, getToken, getCompanyID } from "@/util/session";
export default {
  name: "IndexPage",
  components: {},
  // 定义属性
  data() {
    return {
      app_type: "",
    };
  },
  mounted() {
    this.app_type = GetAPPUserType();
    if (this.app_type === "P") {
      this.$router.replace("person-main");
    } else if (this.app_type === "C") {
      this.$router.replace("company-main");
    } else {
      this.$router.replace("person-lunch");
    }
  },
  // 方法集合
  methods: {

  },
};
</script>

<style scoped>
.launch-app {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #fff;
}

.launch-app .pass-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 30;
  display: flex;
  align-items: center;
  height: 28px;
  padding: 0 11px;
  border-radius: 24px;
  background-color: rgba(0, 0, 0, 0.3);
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  line-height: 28px;
}

.launch-app .slogan,
.launch-app .advertising,
.launch-app .logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.launch-app .advertising {
  top: 0;
  z-index: 20;
  height: 80%;
}

.launch-app .slogan {
  top: 10%;
  z-index: 10;
  width: 60%;
}

.launch-app .logo {
  bottom: 6%;
  z-index: 5;
  width: 54%;
}
</style>
